package deployr.domain;

import java.text.*;
import java.util.*;

import deployr.core.*;

public class ObjectMap extends LinkedHashMap<String, String> {

	private final String contextPath;

	public ObjectMap(String contextPath) {
		this.contextPath = contextPath;
	}

	protected String string(Status status) {
		if (status == null) return "";
		return status.toString();
	}

	protected String time(Date date) {
		if (date == null) return "";
		try {
			return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(date);
		} catch (Exception e) {
			throw new RuntimeException(e);
		}
	}

}
